On macOS, choose Messages > Settings, (or press Command-Comma) click the iMessage button in the toolbar, and select the “Enable messages in iCloud” checkbox.
All you need to access iMessage on Mac is an Apple ID and a relatively new version of macOS. In this guide, we'll show you everything you need to get started.